<%-- 
    Document   : Refrescante
    Created on : Dec 9, 2009, 7:38:30 PM
    Author     : djorge
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean class="Cliente.WebGestor" id="webMyTwi" scope="session"/>

<%
boolean flag = webMyTwi.tenhe();
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <meta http-equiv="Refresh" content="5" />
    </head>
    <body>
        <%
        System.out.println("----------------------------------->"+webMyTwi.tenhe());
        if (flag==true){
            %>
            <form name="NewTweet" action="twits_client.jsp" method="post" target="twits" onsubmit="webMyTwi.getArquivo().setAlterado(false)">
                <input type="submit" value="You have new Tweet!!!" name="new_tweet" />
            </form>
            <%
        }
        %>
    </body>
</html>
